package edu.sctu.zhangwang.month201506.day20150607;

/**
 * Created by Administrator on 2015/6/7.
 */
public class ThreadOne extends Thread {
    long minPrime;
    ThreadOne(long minPrime){
        this.minPrime = minPrime;
    }
    public void run(){
        super.run();
        for (int i = 0;i<=10;i++) {
            System.out.println("[" + i + "]");

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        ThreadOne threadOne = new ThreadOne(1234);
        threadOne.start();
//        threadOne.run();
        System.out.println("主线");
    }
}
